import { EncodeRulesService } from 'src/app/@core/services/encoderRule/encode-rules.service';
import { Component, Input } from '@angular/core';
import { Currency } from 'src/app/@core/data/customer';

@Component({
  selector: 'app-add-currency',
  templateUrl: './add-currency.component.html',
  styleUrls: ['./add-currency.component.scss']
})
export class AddCurrencyComponent {
  @Input() data:any;
  form:Currency ={
    currencyId: 0,
    currencyNum: '',
    currencyName: '',
    currencySymbol: '',
    isDisplaySymbol: false,
    isDefault: false,
    isEnable: true,
    description: ''
  }
  constructor(private EncodeRulesService:EncodeRulesService) {

  }
  ngOnInit(): void {
    this.EncodeRulesService.GenerateWarehouseCodeRule('币种','币种').subscribe(
      res=>{
        this.form.currencyNum = res;
      }
    )
  }
}
